<style scoped src="./index.scss" lang="scss" rel="stylesheet/scss"></style>
<template src="./index.html"></template>

<script>
export default {
  mixins: [
    Vue.prototype.$vFN.Mixins.Base,
    Vue.prototype.$vFN.Mixins.List,
    Vue.prototype.$vFN.Mixins.Edit,
    Vue.prototype.$vFN.Utils,
  ],
  components: {
   
  },
  data() {
    return {
      appWindow: window,
  
       apiUrl: {
        list: "mall-site-portal/wechat-ma-audit/list",
      },

    };
  },
  methods: {
    init() {
      this.mixinEdit_editVisible = true;
      
      // 请求第一页
      this.mixinList_getTable();
    },

    // 时间戳转换
    timeStamp(time){

      if(!this.$vFN.Utils.isEmpty(time)){
        return  this.$vFN.Utils.timestampToDate('yyyy-MM-dd HH:mm:ss',time * 1000)
      }else{
        return '-'
      }

    },

  },
  mounted() {
    this.init();
  },
  filters: {
    state: function(value){
      let text = '无';
      // 1代码已上传 2已提交审核 3待发布 4已发布 5已撤销审核 6失败
      switch(value){
         case 1:
           text = "已上传";
         break;
         case 2:
           text = "已提交审核";
         break;
         case 3:
           text = "待发布";
         break;
         case 4:
           text = "已发布";
         break;
         case 5:
           text = "已撤销审核";
         break;
         case 6:
           text = "失败";
         break;
         default:
      }

      return text;
    },
  }
};
</script>
